import request from "@/utils/request";

export function getChapterAndVideo(courseId) {
  return request({
    url: `/chapter/relation/video/${courseId}`,
    method: 'get'
  })
}

export function addChapter(chapter) {
  return request({
    url: '/chapter',
    method: 'post',
    data: chapter
  })
}
